import java.util.List;

import org.hibernate.Session;
import org.hibernate.Transaction;

import com.dao.UsersDAO;
import com.model.Users;
import com.util.HibernateUtils;
 
public class Demo {

	public static void main(String[] args) {
		List<Users> list=new UsersDAO().findSql("select * from Users");
		for(Users u:list) {
			System.out.println(u.getUsername());
		}
	}

}
